# Module build makefile
CUR_ROOT    := $(shell pwd)
REF_ROOT    ?= $(CUR_ROOT)/../../
SDK_ROOT    ?= $(REF_ROOT)/../

include $(SDK_ROOT)/build/base.mak

SUBDIRS :=

ifeq ($(CONFIG_ADAS_DUMMY_SUPPORT), y)
SUBDIRS += vendor_dummy
endif

.PHONY: all $(SUBDIRS) clean
all:$(SUBDIRS) adapter

$(SUBDIRS):
	@make -C $@||exit $?

adapter:
	@make -C src||exit $?

clean:
	@for MOD in $(SUBDIRS);do\
		make clean -C $$MOD||exit $?;done
	@make clean -C src||exit $?
